package com.ruoyi.factory.estimate.controller;

import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.factory.estimate.service.EstimateHandleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;


/**
 * @author: LiuJiaji
 * @date: 2025/7/31 17:03
 * @description: TODO 评价管理 导入评价关系手动指定表 执行待办人消息整理 发送待办消息
 * @param:
 * @return:
 **/
@RestController
@RequestMapping("/api/estimate")
public class EstimateHandleController {

    @Autowired
    private EstimateHandleService estimateHandleService;


    /**
     * @author: LiuJiaji
     * @date: 2025/7/24 18:25
     * @description: TODO 发送待办消息
     * @param:
     * @return:
     **/
    @PostMapping("/sendCommission")
    @ResponseBody
    public AjaxResult sendCommission(@RequestBody String param){

        return estimateHandleService.sendCommission3(param);
    }

    /**
     * @author: LiuJiaji
     * @date: 2025/7/24 18:25
     * @description: TODO 代办人消息整理 废弃
     * @param:
     * @return:
     **/
    @PostMapping("/intodaibanper")
    @ResponseBody
    public AjaxResult intodaibanper(@RequestBody String param){

        return estimateHandleService.intodaibanper();
    }

    /**
     * @author: LiuJiaji
     * @date: 2025/7/24 18:25
     * @description: TODO 代办人消息整理32.6
     * @param:
     * @return:
     **/
    @PostMapping("/intodaibanper2")
    @ResponseBody
    public AjaxResult intodaibanper2(@RequestBody String param){

        return estimateHandleService.intodaibanper2();
    }

    /**
     * @author: LiuJiaji
     * @date: 2025/7/25 14:44
     * @description: TODO 个人信息查询
     * @param:
     * @return:
     **/
    @PostMapping("/personInfo")
    @ResponseBody
    public AjaxResult personInfo(@RequestBody String param){
        return estimateHandleService.personInfo(param);
    }

    /**
     * @author: LiuJiaji
     * @date: 2025/7/25 14:30
     * @description: TODO 处理待办信息
     * @param:
     * @return:
     **/
    @PostMapping("/consumption")
    @ResponseBody
    public AjaxResult consumption(@RequestBody String param){
        return estimateHandleService.consumption(param);
    }


    /**
     * @author: LiuJiaji
     * @date: 2025/7/26 10:42
     * @description: TODO 查询友空间人员信息同步到rfsy
     * @param:
     * @return:
     **/
    @PostMapping("/personykjtorf")
    @ResponseBody
    public AjaxResult personykjtorf(@RequestBody String param){
        return estimateHandleService.personykjtorf();
    }


    /**
     * @author: LiuJiaji
     * @date: 2025/9/22 08:45
     * @description: TODO 查询未评价人员信息向其发送未评价工作通知
     * @param:
     * @return:
     **/
    @PostMapping("/persontoykjtz")
    @ResponseBody
    public AjaxResult persontoykjtz(){

        return estimateHandleService.persontoykjtz();
    }


}
